package mjc.egg;
import mjc.compiler.*;
import mjc.gc.*;
import mg.egg.eggc.compiler.libjava.lex.*;
import mg.egg.eggc.compiler.libjava.messages.*;
import mg.egg.eggc.compiler.libjava.*;
import mg.egg.eggc.compiler.libjava.problem.IProblem;
import java.util.Vector;
public class S_DEFS_MJAVA {
LEX_MJAVA scanner;
  S_DEFS_MJAVA() {
    }
  S_DEFS_MJAVA(LEX_MJAVA scanner) {
    this.scanner = scanner;
    this.att_scanner = scanner;
    }
int [] sync= new int[0];
  Liste<INFOMethode, String> att_methodes;
  Liste<INFOVar, String> att_attributs;
  TDS att_tds;
  LEX_MJAVA att_scanner;
  private void regle8() throws Exception {

    //declaration
    T_MJAVA x_2 = new T_MJAVA(scanner ) ;
    S_DEF_MJAVA x_4 = new S_DEF_MJAVA(scanner) ;
    S_DEFS_MJAVA x_6 = new S_DEFS_MJAVA(scanner) ;
    //appel
    x_2.analyser(LEX_MJAVA.token_public);
      action_trans_8(x_4, x_6);
    x_4.analyser() ;
      action_trans2_8(x_4, x_6);
    x_6.analyser() ;
  }
  private void regle9() throws Exception {

    //declaration
    T_MJAVA x_2 = new T_MJAVA(scanner ) ;
    S_DEF_MJAVA x_4 = new S_DEF_MJAVA(scanner) ;
    S_DEFS_MJAVA x_6 = new S_DEFS_MJAVA(scanner) ;
    //appel
    x_2.analyser(LEX_MJAVA.token_private);
      action_trans_9(x_4, x_6);
    x_4.analyser() ;
      action_trans2_9(x_4, x_6);
    x_6.analyser() ;
  }
  private void regle7() throws Exception {

    //declaration
    //appel
  }
private void action_trans_9(S_DEF_MJAVA x_4, S_DEFS_MJAVA x_6) throws Exception {
try {
// instructions
x_4.att_tds=this.att_tds;
x_4.att_droit="private";
x_4.att_attributs=this.att_attributs;
x_4.att_methodes=this.att_methodes;
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
private void action_trans_8(S_DEF_MJAVA x_4, S_DEFS_MJAVA x_6) throws Exception {
try {
// instructions
x_4.att_tds=this.att_tds;
x_4.att_droit="public";
x_4.att_attributs=this.att_attributs;
x_4.att_methodes=this.att_methodes;
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
private void action_trans2_8(S_DEF_MJAVA x_4, S_DEFS_MJAVA x_6) throws Exception {
try {
// instructions
x_6.att_tds=this.att_tds;
x_6.att_attributs=this.att_attributs;
x_6.att_methodes=this.att_methodes;
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
private void action_trans2_9(S_DEF_MJAVA x_4, S_DEFS_MJAVA x_6) throws Exception {
try {
// instructions
x_6.att_tds=this.att_tds;
x_6.att_attributs=this.att_attributs;
x_6.att_methodes=this.att_methodes;
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
  public void analyser () throws Exception {
    scanner.lit ( 1 ) ;
    switch ( scanner.fenetre[0].code ) {
      case LEX_MJAVA.token_acf : // 66273
        regle7 () ;
      break ;
      case LEX_MJAVA.token_public : // 66290
        regle8 () ;
      break ;
      case LEX_MJAVA.token_private : // 66291
        regle9 () ;
      break ;
      default :
               scanner._interrompre(IProblem.Syntax, scanner.getBeginLine(), IMJAVAMessages.id_MJAVA_unexpected_token,MJAVAMessages.MJAVA_unexpected_token,new String[]{scanner.fenetre[0].getNom()});
    }
  }
  }
